from django.contrib import admin
from ac import models

# Register your models here.

@admin.register(models.MyUser)	            # model中创建的数据库模型
class MyUserAdmin(admin.ModelAdmin):
    list_display = (                        # 需要显示出来的字段
        'id', 'username'
    )
    list_filter = list_display	            # 提供查找列表的字段
    search_fields = list_display	        # 可以搜索的字段
